﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SimpleSpider.Framework.Downloader
{
    public abstract class IDownloader
    {
        /// <summary>
        /// 获取网页 Get方式
        /// </summary>
        /// <param name="url"></param>
        /// <returns></returns>
        public abstract string Get(string url);

        /// <summary>
        /// 设置头信息
        /// </summary>
        /// <param name="headerString"></param>
        public abstract void SetRequest(string headerString);

        /// <summary>
        /// 设置代理IP
        /// </summary>
        /// <param name="ip"></param>
        /// <param name="port"></param>

        public abstract void SetProxyIP(string ip, string port);
    }
}
